import React, { Component } from 'react'
import '../../App.css'

// 类组件
export default class A extends Component {
    // state = {name:'卡拉米'}

    render() {
        return (
            <div className='b'>
                <h2>我是子组件-child--{this.state.name}</h2>
            </div>
        )
    }
}